package com.qidian.by.pojo;

import com.baomidou.mybatisplus.annotation.IdType;
import com.baomidou.mybatisplus.annotation.TableField;
import com.baomidou.mybatisplus.annotation.TableId;
import com.baomidou.mybatisplus.annotation.TableName;
import java.io.Serializable;
import java.time.LocalDateTime;

/**
 * <p>
 * 
 * </p>
 *
 * @author 戴着假发的程序员
 * @since 2024-05-16
 */
@TableName("buy_user_base")
public class UserBase implements Serializable {
    @TableId(value = "user_id", type = IdType.AUTO)
    private Long userId;

    /**
     * 登录名   
     */
    private String username;

    /**
     * 登陆密码 
     */
    private String userPass;

    /**
     * 昵称     
     */
    private String nickname;

    /**
     * 用户头像 
     */
    private String userHead;

    /**
     * 手机号码
     */
    private String userTel;

    /**
     * 邮箱     
     */
    private String userEmail;

    /**
     * 注册时间 
     */
    private LocalDateTime createTime;

    /**
     * 修改时间 
     */
    private LocalDateTime modifyTime;
    @TableField(exist = false)
    private String codeToken;
    @TableField(exist = false)
    private String code;

    public String getCodeToken() {
        return codeToken;
    }

    public void setCodeToken(String codeToken) {
        this.codeToken = codeToken;
    }

    public String getCode() {
        return code;
    }

    public void setCode(String code) {
        this.code = code;
    }

    /**
     * 用户状态 
     */
    private Integer status;

    public Long getUserId() {
        return userId;
    }

    public void setUserId(Long userId) {
        this.userId = userId;
    }

    public String getUsername() {
        return username;
    }

    public void setUsername(String username) {
        this.username = username;
    }

    public String getUserPass() {
        return userPass;
    }

    public void setUserPass(String userPass) {
        this.userPass = userPass;
    }

    public String getNickname() {
        return nickname;
    }

    public void setNickname(String nickname) {
        this.nickname = nickname;
    }

    public String getUserHead() {
        return userHead;
    }

    public void setUserHead(String userHead) {
        this.userHead = userHead;
    }

    public String getUserTel() {
        return userTel;
    }

    public void setUserTel(String userTel) {
        this.userTel = userTel;
    }

    public String getUserEmail() {
        return userEmail;
    }

    public void setUserEmail(String userEmail) {
        this.userEmail = userEmail;
    }

    public LocalDateTime getCreateTime() {
        return createTime;
    }

    public void setCreateTime(LocalDateTime createTime) {
        this.createTime = createTime;
    }

    public LocalDateTime getModifyTime() {
        return modifyTime;
    }

    public void setModifyTime(LocalDateTime modifyTime) {
        this.modifyTime = modifyTime;
    }

    public Integer getStatus() {
        return status;
    }

    public void setStatus(Integer status) {
        this.status = status;
    }

    @Override
    public String toString() {
        return "UserBase{" +
            "userId = " + userId +
            ", username = " + username +
            ", userPass = " + userPass +
            ", nickname = " + nickname +
            ", userHead = " + userHead +
            ", userTel = " + userTel +
            ", userEmail = " + userEmail +
            ", createTime = " + createTime +
            ", modifyTime = " + modifyTime +
            ", status = " + status +
        "}";
    }
}
